{extend name='admin@main'}

{block name="content"}
<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card'
      autocomplete="off">
    <div class="layui-card-body">
        {notempty name='vo.id'}
        <div class="layui-form-item">
            <label class="layui-form-label">会员ID</label>
            <div class="layui-input-block">
                <input disabled value='{$vo.id}' class="layui-input layui-bg-gray">
            </div>
        </div>
        {/notempty}

        <div class="layui-form-item">
            <label class="layui-form-label">会员账号</label>
            <div class="layui-input-block">
                <input disabled value='{$vo.account|default=""}' class="layui-input layui-bg-gray">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">当前积分</label>
            <div class="layui-input-block">

                <input disabled value='{$vo.credit1}' class="layui-input layui-bg-gray">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">变化</label>
            <div class="layui-input-block">
                {foreach ['1' => '增加','-1'=>'减少','0'=>'最终积分'] as $k => $v}
                <label class="think-radio">
                <!--{eq name='$k' value='1'}-->
                <input type="radio" value="{$k}" name="rechare_type" title="{$v}" checked lay-ignore> {$v}
                <!--{else}-->
                <input type="radio" value="{$k}" name="rechare_type" title="{$v}" lay-ignore>{$v}
                <!--{/eq}-->
                </label>
                {/foreach}
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">充值数目</label>
            <div class="layui-input-block">
                <input name="num" required value='' type="number" class="layui-input" data-rule-number="true" data-rule-required="true" data-rule-min="0.01" aria-required="true">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input name="remark" value='' type="text" class="layui-input" >
            </div>
        </div>

        <div class="hr-line-dashed"></div>

        <div class="layui-form-item text-center">
            {notempty name='vo.id'}<input type="hidden" name="id" value="{$vo.id}">{/notempty}
            <button class="layui-btn" type='submit'>保存数据</button>
            <button class="layui-btn layui-btn-danger" type='button' data-close>取消修改</button>
        </div>
        <br/>
    </div>
</form>
{/block}

